<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBrandsTable extends Migration
{
    public function up()
    {
        Schema::create('brands', function (Blueprint $table) {
	        $table->id();
	        $table->string('name')->nullable();
	        $table->string('name_mini')->nullable()->comment('abbreviation');
	        $table->string('image')->nullable()->comment('brand image');
	        $table->unsignedInteger('order')->default(1000);
	        $table->boolean('is_shown')->default(true);
	        $table->timestamps();
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('brands');
    }
}
